package com.zhiqingchun.pojo;

import java.util.Date;


/**
 * Comment entity. @author MyEclipse Persistence Tools
 */

public class CommentDO implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer articleId;
	private Integer usrId;
	private String content;
	private Date time;
	private Integer score;
	private String usrName;
	private String avatar;
	
	private Usr usr;
	private ArticleDO articleDO;
	// Constructors

	public Usr getUsr() {
		return usr;
	}

	public void setUsr(Usr usr) {
		this.usr = usr;
	}

	public ArticleDO getArticleDO() {
		return articleDO;
	}

	public void setArticleDO(ArticleDO articleDO) {
		this.articleDO = articleDO;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getUsrName() {
		return usrName;
	}

	public void setUsrName(String usrName) {
		this.usrName = usrName;
	}

	/** default constructor */
	public CommentDO() {
	}

	/** minimal constructor */
	public CommentDO(Integer articleId, Integer usrId, String content,
			Integer score) {
		this.articleId = articleId;
		this.usrId = usrId;
		this.content = content;
		this.score = score;
	}

	/** full constructor */
	public CommentDO(Integer articleId, Integer usrId, String content,
			Date time, Integer score) {
		this.articleId = articleId;
		this.usrId = usrId;
		this.content = content;
		this.time = time;
		this.score = score;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getArticleId() {
		return this.articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public Integer getUsrId() {
		return this.usrId;
	}

	public void setUsrId(Integer usrId) {
		this.usrId = usrId;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getScore() {
		return this.score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

}